import request from "@/utils/request";
import {
	apiClassify
} from "@/utils/request";
import QS from "querystring"
// 素材列表接口	
export function getSucaiCategoryList() {
	return request({
		url: `${apiClassify.ddcPort}/play/getDraftList?pageNum=1&pageSize=10&keywords=&type=2`,
		method: "get"
	});
}

export function getCraft() {
	return request({
		url: `/api/kylin/design/craft`,
		method: "get",
	});
}

export function getType() {
	return request({
		url: `/api/kylin/design/category`,
		method: "get",
	});
}

export function getSum() {
	return request({
		url: `/api/kylin/statisticssum/all`,
		method: "get",
	});
}

export function getMax(params) {
	return request({
		url: `/api/kylin/statisticsmax/all`,
		method: "get",
		params,
	});
}

export function getWell(params) {
	return request({
		url: `/api/kylin/analyse/all`,
		method: "get",
		params,
	});
}

export function getWellArea(params) {
	return request({
		url: `/api/kylin/area/analyse`,
		method: "get",
		params,
	});
}

export function getCharge(params) {
	return request({
		url: `/api/kylin/analysestatic/charge`,
		method: "get",
		params,
	});
}

export function getChargeArea(params) {
	return request({
		url: `/api/kylin/area/charge`,
		method: "get",
		params,
	});
}

export function getDepth(params) {
	return request({
		url: `/api/kylin/analysestatic/depth`,
		method: "get",
		params,
	});
}

export function getDepthArea(params) {
	return request({
		url: `/api/kylin/area/depth`,
		method: "get",
		params,
	});
}

export function getDeg(params) {
	return request({
		url: `/api/kylin/analysestatic/deg`,
		method: "get",
		params,

	});
}

export function getDegArea(params) {
	return request({
		url: `/api/kylin/area/deg`,
		method: "get",
		params,

	});
}

export function getChina(params) {
	return request({
		url: `/api/kylin/area/area`,
		method: "get",
		params,
	});
}

export function getText(targetFolder) {
	return request({
		url: 'http://10.28.63.127:9006/linux',
		method: 'post',
		// 跨域报错 可能出现在data上，测试的时候可以先不带data
		// data的处理方式需要放在request.js使用qs处理
		data: {
			targetFolder: targetFolder
		}
	});
}

export function getRealTime() {
	return request({
		url: 'api/kylin/rt_details/all',
		method: 'get',
	});
}